<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
</head>
<body>
<div id="app">
    <div class="active" v-memo="[name,age,height]">
        <h2>姓名：{{name}}</h2>
        <h2>年龄：{{age}}</h2>
        <h2>身高：{{height}}</h2>
    </div>
    <button v-on:click="updateInfo">改变信息</button>
</div>
<script src="https://unpkg.com/vue@3"></script>
<script>
    const app=Vue.createApp({
        data(){
            return{
                name:'why',
                age:19,
                height:1.88
            }
        },
        methods:{
            updateInfo:function(){
                this.age=23
            }
        }
    })

    app.mount("#app")
</script>
</body>
</html>